﻿// -----------------------------------------------------------------------
// <copyright company="Christoph van der Fecht - VDsoft">
// This code can be used in commercial, free and open source projects.
// </copyright>
// -----------------------------------------------------------------------

namespace VDsoft.SeriesNewsReader.Model
{
	/// <summary>
	/// Contains all search cirterias.
	/// </summary>
	public class SearchCriteria
	{
		/// <summary>
		/// The SearchString.
		/// </summary>
		private string searchString = null;

		/// <summary>
		/// The Language.
		/// </summary>
		private string language = null;

		/// <summary>
		/// The Resolution.
		/// </summary>
		private Resolution resolution = Resolution.Unknown;

		/// <summary>
		/// Gets or sets the SearchString.
		/// </summary>
		public string SearchString
		{
			get
			{
				return this.searchString;
			}

			set
			{
				if (value == this.searchString)
				{
					return;
				}

				this.searchString = value;
			}
		}

		/// <summary>
		/// Gets or sets the Language.
		/// </summary>
		public string Language
		{
			get
			{
				return this.language;
			}

			set
			{
				if (value == this.language)
				{
					return;
				}

				this.language = value;
			}
		}

		/// <summary>
		/// Gets or sets the Resolution.
		/// </summary>
		public Resolution Resolution
		{
			get
			{
				return this.resolution;
			}

			set
			{
				if (value == this.resolution)
				{
					return;
				}

				this.resolution = value;
			}
		}
	}
}
